package com.github.wxpay.sdk;

import java.io.InputStream;

/**
 * @Author: HuangFu
 * @Date: 2020/2/19 10:16
 * @Description:
 */
public class MyConfig extends WXPayConfig {

    /**
     * 唯一标识
     *
     * @return
     */
    @Override
    String getAppID() {
        return "wx8397f8696b538317";
    }

    /**
     * 商户号
     *
     * @return
     */
    @Override
    String getMchID() {
        return " 1473426802";
    }

    /**
     * 商家密钥
     *
     * @return
     */
    @Override
    String getKey() {
        return "T6m9iK73b0kn9g5v426MKfHQH7X8rKwb";
    }
    @Override
    InputStream getCertStream() {
        return null;
    }

    /**
     * 支付域名
     *
     * @return
     */
    @Override
    IWXPayDomain getWXPayDomain() {
        return new IWXPayDomain() {
            public void report(String s, long l, Exception e) {

            }

            public DomainInfo getDomain(WXPayConfig wxPayConfig) {
                return new DomainInfo("api.mch.weixin.qq.com", true);
            }
        };
    }
}

